home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_robodoor.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  58 lines

  1. # Jones 3D Cog Script
  2. #
  3. # nub_RoboDoor.cog
  4. #
  5. # [TL]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9. symbols
  10.  
  11. message    startup
  12. message    damaged
  13.  
  14. thing    button0        mask=0x8
  15. thing    robot
  16.  
  17. surface    adjoin0
  18.  
  19. thing    player        local
  20.  
  21. int        done=0        local
  22.  
  23. end
  24.  
  25. # ========================================================================================
  26. code
  27.  
  28. startup:
  29. StartCutscene(1);
  30. EndCutscene();
  31. player = GetLocalPlayerThing();
  32.  
  33. return;
  34.  
  35. # ........................................................................................
  36. damaged:
  37.  
  38. if ((GetSenderRef() == button0) && (GetParam(1) == 0x4000))
  39.     {
  40.         if (done == 1) return;
  41.         done = 1;
  42.         StopThing(player);
  43.         SetActorFlags(player, 0x200000);
  44.         //PlayMode(player, 60, 0);
  45.         SetAdjoinFlags(adjoin0, 2);
  46.         print("Looks like that charged the door...");
  47.         Sleep(1.0);
  48.         print("I guess I can open it now...");
  49.         ClearActorFlags(player, 0x200000);
  50.         SendMessageEX(GetThingClassCog(robot), user0, robot, 0, 0, 0);
  51.     }
  52.  
  53. return;
  54.  
  55. # ........................................................................................
  56. end
  57.  
  58.